<?php
/**
 * Created by PhpStorm.
 * User: Celebration-Grey
 * Date: 2017/5/6
 * Time: 9:49
 */

Route::get('/weibo_admin',function (){
    return redirect('admin/index.html');
});

Route::post('/admin_login','Admin\AdminController@adminLogin');

Route::group(['middleware' => 'AdminToken'],function (){
    Route::post('/admin_getAllUsers','Admin\UserController@selectUser');
    Route::post('/admin_getLevels','Admin\LevelController@getLevels');
    Route::post('/admin_getBowens','Admin\BowenController@getBowens');
    Route::post('/admin_getComments','Admin\CommentController@getComments');
    Route::post('/admin_getReplys','Admin\ReplyController@getReplys');
    Route::post('/admin_getAuthorInfo','Admin\UserController@getAuthorInfo');
    Route::post('/admin_getLogs','Admin\LogController@getLogs');
});